using System;
using System.Collections.Generic;
using System.Text;

namespace SmartContentDB.Interfaces
{
    public class UserRight
    {
        #region Variables
        private int userId;
        private int documentId;
        private int containerId;

        private bool view_right;
        private bool edit_right;
        private bool xprt_right;
        private bool prnt_right;

        private bool add_right;
        private bool edt_right;
        private bool del_right;
        #endregion

        #region Constructor
        public UserRight()
        {
            this.userId = -1;
            this.documentId = -1;
            this.containerId = -1;
            this.view_right = false;
            this.edit_right = false;
            this.xprt_right = false;
            this.prnt_right = false;

            this.add_right = false;
            this.del_right = false;
        }
        #endregion

        #region SET/GET
        public int UserId
        {
            set { this.userId = value; }
            get { return userId; }
        }
        public int DocumentId
        {
            set { this.documentId = value; }
            get { return documentId; }
        }
        public int ContainerId
        {
            set { this.containerId = value; }
            get { return this.containerId; }
        }
        public bool Add
        {
            set { this.add_right = value; }
            get { return this.add_right; }
        }
        public bool Delete
        {
            set { this.del_right = value; }
            get { return this.del_right; }
        }
        public bool View
        {
            set { this.view_right = value; }
            get { return this.view_right; }
        }
        public bool Edit
        {
            set { this.edit_right = value; }
            get { return this.edit_right; }
        }
        public bool Export
        {
            set { this.xprt_right = value; }
            get { return this.xprt_right; }
        }
        public bool Print
        {
            set { this.prnt_right = value; }
            get { return this.prnt_right; }
        }
        #endregion
    }
}
